﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Order.MicroService.ViewModel
{
    /// <summary>
    /// 分页基类
    /// </summary>
    public class Pagination<TEntity>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public List<TEntity> Data { get; set; }


        public Pagination()
        {
            //Data = new List<T>();
        }
    }
}
